package com.ykq.system.controller;

import com.ykq.core.entity.Dept;
import com.ykq.core.vo.R;
import com.ykq.system.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: 闫克起
 * @Description:
 * @Date: Create in 8:56 2024/8/14
 */
@RestController
@RequestMapping("/system/dept")
public class DeptController {

    @Autowired
    private DeptService deptService;

    @GetMapping("/list")
    public R<List<Dept>> list(){
        return deptService.selectAll();
    }
}



















